package com.andrew.dao;

import java.sql.SQLException;
import java.util.List;

import com.andrew.entity.Book;
import com.andrew.entity.Comment;
import com.andrew.entity.Customer;

public interface CommentDao {
	/***
	 * 插入一条评论
	 * @param customer
	 * @param bookId
	 * @return
	 * @throws SQLException
	 */
	public int InsertComment(Comment comment)throws SQLException;
	/***
	 * 查看评论：Comment集合
	 * @param bookId
	 * @return
	 * @throws SQLException
	 */
	public List<Comment> queryAllCommentByBookId(int bookId)throws SQLException;
	/***
	 * 
	 * @param CommentId
	 * @return
	 * @throws SQLException
	 */
	public int deleteCommentByCommentId(int CommentId)throws SQLException;

	/**
	 * 获取全部评价
	 * @return
	 * @throws SQLException
	 */
	public List<Comment> queryAllComments() throws SQLException;
}
